<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>联系我们</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" media="all">
</head>
<?php
header("content-type:text/html;charset=utf-8");
include "./Mysql/MySqlClass.php";
$mySQL              = new Ycf\Lession\MySqlClass\MySqlClass('jinling_company', 'root', '123456');
$companyInformation = $mySQL->select("company_information");
$admin              = $mySQL->select("admin", $where = array('adminNo' => $companyInformation['adminId']));
?>
<body>
<div id="append"></div>
<div class="container">
	<h3>联系我们</h3>
    <div class="mainbox">
        <form action="mysqlOption/companyInformationUpdate.php" method="post">
                	<tr>
                        <td>地址:</td>
                        <td><input name="address" class="txt" type="text" value="<?php echo $companyInformation['companyAddress']; ?>"></td>
                        <td>联系人:</td>
                            <td><input name="contacts" class="txt" type="text" value="<?php echo $companyInformation['companyContacts']; ?>"></td>
                        <td>移动电话:</td>
                        <td><input name="mobelTel" class="txt" type="text" value="<?php echo $companyInformation['mobleCompanyTel']; ?>"></td>
                        <td>固定电话:</td>
                        <td><input name="tel" class="txt" type="text" value="<?php echo $companyInformation['companyTel']; ?>"></td>
                        <td>传真:</td>
                        <td><input name="fax" class="txt" type="text" value="<?php echo $companyInformation['companyFax']; ?>"></td>
                    </tr>
                    <tr>
                    	<td>上次编辑：<?php
echo $admin['adminName']; ?> &nbsp;&nbsp;&nbsp;上次编辑时间：<?php
echo $companyInformation['companyInformationDate']; ?></td>
                    </tr>
                    <tr>
                        <td><input value="更 新" class="btn" type="submit"></td>
                    </tr>
        </form>
    </div>
</div>
</body>
</html>

